<?php include_once TMPL_DIR.'layout/header.php';?>
<?php

$load->helper('url');
$path	=	$_GET['path'];
$arr	=	explode('/', $path);
$tmpl	=	'';
if(count($arr) > 1)
{
	switch($arr[1])
	{
		case 'check_user':
			break;
		default:
			$tmpl	=	'index';
			
	}
	
	
}
else
{
	$tmpl	=	'index';
}
$file	=	TMPL_DIR.$module->get_class().'/'.$module->get_function().'.tmpl';
//echo $file;
$smarty->display($file);

include_once 'functions/account.php';
if(isset($_SESSION['user']))
{
	$acc	=	new account();
	$balances	=	$acc->get_balances($_SESSION['user']['username']);
	echo $balances;	
}
?>

<?php include_once TMPL_DIR.'layout/footer.php';?>